﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utility
{
    public class UniqueID
    {
        #region Consts
        private static int indexationStartingIndex = 0;
        #endregion

        #region Variables
        // -1 because of the ++value before returning it 
        public static int worker = indexationStartingIndex - 1;
        public static int department = indexationStartingIndex - 1;
        public static int office = indexationStartingIndex - 1;
        public static int project = indexationStartingIndex - 1;
        #endregion

        #region Properties
        public static int Worker
        {
            get
            {
                ++worker;
                return worker;
            }
        }

        public static int Department
        {
            get
            {
                ++department;
                return department;
            }
        }

        public static int Office
        {
            get
            {
                ++office;
                return office;
            }
        }

        public static int Project
        {
            get
            {
                ++project;
                return project;
            }
        }
        #endregion
    }
}
